﻿using Net.Share;

namespace Net.System
{
    /// <summary>
    /// 通用Rpc模型工厂
    /// </summary>
    public class RpcModelFactory : IRpcModelFactory
    {
        /// <inheritdoc/>
        public IRpcModel Create(byte cmd = default, bool kernel = default, byte[] buffer = default, int index = default, int count = default, uint protocol = default, object[] pars = default, SyncSerialize serialize = default, uint token = default)
        {
            return new RpcModel(cmd, kernel, buffer, index, count, protocol, pars, serialize.IsOn, token);
        }
    }
}